﻿<%@ Page Language="C#" MasterPageFile="~/master/MasterPage.master" AutoEventWireup="true" CodeFile="PesquisaFontesChave.aspx.cs" Inherits="page_FontesChaveTeste" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table style="width: 100%;" cellpadding="0" cellspacing="0">
    <tr>
        <td style="width: 100%;">
            <fieldset style="width:535px;">
                <legend>Filtro</legend>
            <table style="font-size: 10pt;" cellpadding="2" cellspacing="0">
            <tr>
             <td>
              <asp:Label ID="LblPalavraChave" runat="server" Text="Termo Fonte"></asp:Label>
             </td>
             <td align=right>
              <asp:TextBox ID="txtNomeTermo" runat="server"  
                     ToolTip="Digite o * como caractér coringa. Exemplo *Cliente* " Width="400px" ></asp:TextBox>
             </td>
            </tr>

            <tr>
            <td colspan="2" align="right">
            <asp:Button ID="BtnLimpar" runat="server" onclick="BtnLimpar_Click" Text="Limpar" />
            <asp:Button ID="BtnPesquisar" runat="server" Text="Pesquisar" onclick="BtnPesquisar_Click" />
            </td>
            </tr>

            </table>
            </fieldset>
         </td>
      </tr>
      
      <tr>
        <td style="width: 100%;">
            <asp:GridView ID="GrdFontes" runat="server" AutoGenerateColumns="False" onrowdatabound="GrdFontesChave_RowDataBound"
                    AllowPaging="True" onpageindexchanging="GrdFontes_PageIndexChanging" 
                      CellPadding="3" ForeColor="#333333" GridLines="None" Font-Size="10pt"  
                    Width="800px" >
                      <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" Font-Size="10pt" Height="2px" />
                      <RowStyle BackColor="White" />
                     <Columns>
                         <asp:BoundField ControlStyle-Width="150px" DataField="NomeTermo" HeaderText="Termo Fonte:" 
                             SortExpression="NomeTermo" >
            <ControlStyle Width="150px"></ControlStyle>
                         </asp:BoundField>
                         <asp:BoundField ControlStyle-Width="150px" DataField="Modulo" HeaderText="Módulo:" 
                             SortExpression="Modulo" >
            <ControlStyle Width="150px"></ControlStyle>
                         </asp:BoundField>
                         <asp:BoundField ControlStyle-Width="150px" DataField="ModuloPai" HeaderText="Módulo Pai:" 
                             SortExpression="ModuloPai" >
            <ControlStyle Width="150px"></ControlStyle>
                         </asp:BoundField>
                         <asp:BoundField ControlStyle-Width="150px" DataField="Filtro" HeaderText="Filtro:" 
                             SortExpression="Filtro" >
                             
            <ControlStyle Width="150px"></ControlStyle>
                         </asp:BoundField>
                             
                         <asp:BoundField DataField="FonteTipo">
                             <HeaderStyle  CssClass="Esconder" />
                             <ItemStyle CssClass="Esconder" />
                             <ControlStyle CssClass="Esconder" />
                         </asp:BoundField>
                         
                         <asp:BoundField DataField="Fonte">
                             <HeaderStyle  CssClass="Esconder" />
                             <ItemStyle CssClass="Esconder" />
                             <ControlStyle CssClass="Esconder" />
                         </asp:BoundField>
                                      
                         <asp:BoundField DataField="Data">
                             <HeaderStyle  CssClass="Esconder" />
                             <ItemStyle CssClass="Esconder" />
                             <ControlStyle CssClass="Esconder" />
                         </asp:BoundField>
                         
                         <asp:BoundField DataField="TextoAjuda">
                             <HeaderStyle  CssClass="Esconder" />
                             <ItemStyle CssClass="Esconder" />
                             <ControlStyle CssClass="Esconder" />
                         </asp:BoundField>
                             
                         <asp:BoundField DataField="Responsavel">
                             <HeaderStyle  CssClass="Esconder" />
                             <ItemStyle CssClass="Esconder" />
                             <ControlStyle CssClass="Esconder" />
                         </asp:BoundField>
                         
                          <asp:BoundField DataField="Avaliado">
                             <HeaderStyle  CssClass="Esconder" />
                             <ItemStyle CssClass="Esconder" />
                             <ControlStyle CssClass="Esconder" />
                         </asp:BoundField>
                         
                         <asp:BoundField DataField="Desprezado">
                             <HeaderStyle  CssClass="Esconder" />
                             <ItemStyle CssClass="Esconder" />
                             <ControlStyle CssClass="Esconder" />
                         </asp:BoundField>
                         
                         <asp:BoundField DataField="TermoSugerido">
                             <HeaderStyle  CssClass="Esconder" />
                             <ItemStyle CssClass="Esconder" />
                             <ControlStyle CssClass="Esconder" />
                         </asp:BoundField>    
                               <asp:HyperLinkField DataNavigateUrlFields="Id" 
                             DataNavigateUrlFormatString="FontesDetalhe.aspx?id={0}" 
                             HeaderImageUrl="~/images/search.gif" HeaderText="Detalhes" 
                             Text="Detalhes" />                 
                     </Columns>
                      <PagerStyle BackColor="#333399" ForeColor="White" HorizontalAlign="Center" />
                      <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                      <HeaderStyle BackColor="#333399" Font-Bold="True" ForeColor="White" 
                               HorizontalAlign="Center" Font-Size="10pt"/>
                      <EditRowStyle BackColor="#2461BF" />
                      <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            </td>
       </tr>
    </table>
</asp:Content>

